/*

BlackRabbit - OpenSource IDE.
@author Edward Sarkisyan (edward.sarkisyan@gmail.com)
Use LGPL (http://www.gnu.org/copyleft/lesser.html)

*/

#include "notify.h"
#include "ui_notify.h"

Notify::Notify(QWidget *parent) :
    QWidget(parent),
    m_ui(new Ui::Notify)
{
    m_ui->setupUi(this);
}

Notify::~Notify()
{
    delete m_ui;
}

void Notify::changeEvent(QEvent *e)
{
    QWidget::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        m_ui->retranslateUi(this);
        break;
    default:
        break;
    }
}

void Notify::on_text_clicked()
{
    QMessageBox::critical(0,"",m_ui->text->text());
}

void Notify::setText(QString text)
{
    m_ui->text->setText(text);
}
